<!DOCTYPE html>
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');?>
<div id="main-content">
   <div class='title'>Daftar HPS</div>
 
   <?php echo anchor('eproc/insert_hps','+ Tambah HPS Baru');?>
   <table class='data' width='100%'>
      <tr>
         <th width='15%' align='left'>Nomor HPS</th>
         <th width='10%' align='left'>Tanggal HPS</th>
         <th width='20%' align='left'>Objek Pekerjaan</th>
         <th width='20%' align='center'>Rincian HPS</th>
		 <th width='15%' align='center'>Nilai HPS</th>
		 <th width='25%' align='center'>Aksi</th>
		 
      </tr>
   <?php
   foreach($all_hps->result() as $row)
   {
      ?>
      <tr>
         <td><?php echo $row->no_hps;?></td>
         <td><?php
		 $date=date_create($row->tgl_hps);		 
		 echo date_format($date,"d F Y")?></td>
         <td><?php echo $row->objek_pekerjaan;?></td>
		 <td><?php echo $row->rincian_hps;?></td>
		 <td>Rp.<?php echo number_format($row->nilai_hps,2,",",".");?></td>
         <td align='center'>
            <?php
			//echo anchor('eproc/edit_hps/'.$row->no_hps,'Detil');
			$atts = array(
              'width'      => '800',
              'height'     => '600',
              'scrollbars' => 'yes',
              'status'     => 'yes',
              'resizable'  => 'yes',
              'screenx'    => '0',
              'screeny'    => '0'
            );
			echo anchor_popup('eproc/view_hps/', 'Detail', $atts);
			echo ' - ';
            echo anchor('eproc/edit_hps/'.$row->no_hps,'Edit');
            echo ' - ';
            echo anchor('eproc/delete_hps/'.$row->no_hps,'Hapus');
            ?>
         </td>
      </tr>
      <?php
   }
   ?>
   </table>
</div>